#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int* findDisappearedNumbers(int* nums, int numsSize, int* returnSize) {
	int i, t = 0;
	int* p = (int*)malloc(numsSize * sizeof(int));
	for (i = 0; i < numsSize; i++) {
		if (nums[abs(nums[i])-1] > 0) {
			nums[abs(nums[i]) - 1] *= -1;
		}
	}
	for (i = 0; i < numsSize; i++) {
		if (nums[i] > 0) {
			p[t++] = i + 1;
		}
	}
	returnSize = t;
	return p;
}